namespace NFreeMarker.Core
{
    /// <summary>
    /// An instruction that flushes the output stream.
    /// </summary>
    internal sealed class FlushInstruction : TemplateElement
    {
        internal override void Accept(Environment env)
        {
            env.GetOut().Flush();
        }

        public override string GetCanonicalForm()
        {
            return "<#flush/>";
        }

        public override string GetDescription()
        {
            return "flush instruction";
        }
    }
}